<template>
  <MainLayout title="页面标题">
    <view class="p-12">
      <view class="blk">这里展示设备回传的数据预览（占位）。</view>
      <button type="primary" @click="submit">确认提交</button>
    </view>
  </MainLayout>




</template>

<script setup lang="ts">
import { api } from '@/services/api'
import MainLayout from '@/layouts/MainLayout.vue'
async function submit(){
  await api.submitDevice({ /* todo: 采集数据 */ })
  uni.showToast({ title:'提交成功', icon:'success' })
  uni.navigateBack()
}
</script>

<style scoped>
.p-12{padding:12px}.blk{background:#fff;border-radius:8px;padding:10px;margin-bottom:12px}
</style>
